package ldh.serialize;

import java.io.StringWriter;

import ldh.serialize.util.SerializedUtil;


public abstract class AbstractStringSerialzied<T> implements StringSerialized<T> {

	protected String propertyName;
	
	public String getPropertyName() {
		return propertyName;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}
	
	@Override
	public void writeToString(StringWriter writer, T t) {
		SerializedUtil.writeKey(writer, this.getPropertyName());
	}
}
